package com.cskaoyan.bean.wx.order.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Name : OrderVo.java
 * @Time : 2021/8/15 15:39
 * @Author : Xfeng
 * @Software : IntelliJ IDEA
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderVo {
    /**
     * orderStatusText : 已取消(系统)
     * isGroupin : false
     * orderSn : 20210815903667
     * actualPrice : 47.0
     * goodsList : [{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/97ad483a94ed88216a989df83e39cbf0.png","id":188,"goodsName":"暗格简约钢笔"}]
     * id : 140
     * handleOption : {"cancel":false,"confirm":false,"rebuy":false,"pay":false,"comment":false,"delete":true,"refund":false}
     */
    private String orderStatusText;
    private Boolean isGroupin = false;
    private String orderSn;
    private BigDecimal actualPrice;
    private List<GoodsListEntity> goodsList;
    private Integer id;
    private HandleOptionVo handleOption;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class GoodsListEntity {
        /**
         * number : 1
         * picUrl : http://yanxuan.nosdn.127.net/97ad483a94ed88216a989df83e39cbf0.png
         * id : 188
         * goodsName : 暗格简约钢笔
         */
        private Short number;
        private String picUrl;
        private Integer id;
        private String goodsName;
    }
}
